<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  
  <title>第二篇文章hexo | Lucky的博客</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta name="description" content="可以修改文章中的参数，打开scaffolds/post.md这个模板中增加类别和描述：categories或description其他，在新建的hexo new 中建立的文章会有这几个参数，tags和categories有多个，则用数组形式。">
<meta property="og:type" content="article">
<meta property="og:title" content="第二篇文章hexo">
<meta property="og:url" content="https://samdyddd.github.io/hexopage.github.io/2017/02/27/第二篇文章hexo/index.html">
<meta property="og:site_name" content="Lucky的博客">
<meta property="og:description" content="可以修改文章中的参数，打开scaffolds/post.md这个模板中增加类别和描述：categories或description其他，在新建的hexo new 中建立的文章会有这几个参数，tags和categories有多个，则用数组形式。">
<meta property="og:updated_time" content="2017-02-27T09:35:27.521Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="第二篇文章hexo">
<meta name="twitter:description" content="可以修改文章中的参数，打开scaffolds/post.md这个模板中增加类别和描述：categories或description其他，在新建的hexo new 中建立的文章会有这几个参数，tags和categories有多个，则用数组形式。">
  
    <link rel="alternate" href="/atom.xml" title="Lucky的博客" type="application/atom+xml">
  
  
    <link rel="icon" href="/favicon.png">
  
  
    <link href="//fonts.googleapis.com/css?family=Source+Code+Pro" rel="stylesheet" type="text/css">
  
  <link rel="stylesheet" href="/hexopage.github.io/css/style.css">
  

</head>

<body>
  <div id="container">
    <div id="wrap">
      <header id="header">
  <div id="banner"></div>
  <div id="header-outer" class="outer">
    <div id="header-title" class="inner">
      <h1 id="logo-wrap">
        <a href="/hexopage.github.io/" id="logo">Lucky的博客</a>
      </h1>
      
    </div>
    <div id="header-inner" class="inner">
      <nav id="main-nav">
        <a id="main-nav-toggle" class="nav-icon"></a>
        
          <a class="main-nav-link" href="/hexopage.github.io/">Home</a>
        
          <a class="main-nav-link" href="/hexopage.github.io/archives">Archives</a>
        
      </nav>
      <nav id="sub-nav">
        
          <a id="nav-rss-link" class="nav-icon" href="/atom.xml" title="RSS Feed"></a>
        
        <a id="nav-search-btn" class="nav-icon" title="搜索"></a>
      </nav>
      <div id="search-form-wrap">
        <form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form"><input type="search" name="q" results="0" class="search-form-input" placeholder="Search"><button type="submit" class="search-form-submit">&#xF002;</button><input type="hidden" name="sitesearch" value="https://samdyddd.github.io/hexopage.github.io"></form>
      </div>
    </div>
  </div>
</header>
      <div class="outer">
        <section id="main"><article id="post-第二篇文章hexo" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    <a href="/hexopage.github.io/2017/02/27/第二篇文章hexo/" class="article-date">
  <time datetime="2017-02-27T09:09:44.000Z" itemprop="datePublished">2017-02-27</time>
</a>
    
  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 class="article-title" itemprop="name">
      第二篇文章hexo
    </h1>
  

      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
        <p>可以修改文章中的参数，打开scaffolds/post.md这个模板中增加类别和描述：<br>categories或description其他，在新建的hexo new 中建立的文章会有这几个参数，<br>tags和categories有多个，则用数组形式。<br><a id="more"></a><br>关于部署问题：<br>在部署之前要通过命令将所有文章做静态化处理，就是生产对应的html，js，css等文件，使得<br>所有文章是由惊天文件爱你组成的。<br> 部署命令：<br> hexo generate（或简化命令：hexo g）</p>
<p> 在本地目录生产一个public目录，里面包含所有静态文件。</p>
<p> 生产静态文件后，发布到github，需要配置deploy指令。<br> 在全局配置文件中deplay：</p>
<h1 id="Deployment"><a href="#Deployment" class="headerlink" title="Deployment"></a>Deployment</h1><h2 id="Docs-https-github-com-Samdyddd-lucky-github-io-git"><a href="#Docs-https-github-com-Samdyddd-lucky-github-io-git" class="headerlink" title="Docs: https://github.com/Samdyddd/-lucky.github.io-.git"></a>Docs: <a href="https://github.com/Samdyddd/-lucky.github.io-.git" target="_blank" rel="external">https://github.com/Samdyddd/-lucky.github.io-.git</a></h2><p>deploy:<br>type: git<br>repo: <a href="https://github.com/Samdyddd/-lucky.github.io-.git" target="_blank" rel="external">https://github.com/Samdyddd/-lucky.github.io-.git</a><br>branch: master</p>
<p>然后按照hexo-deployer-git：npm install hexo-deployer-git -S</p>
<p>最后利用hexo指令发布到github<br>hexo deploy（或是hexo d）</p>

      
    </div>
    <footer class="article-footer">
      <a data-url="https://samdyddd.github.io/hexopage.github.io/hexopage.github.io/2017/02/27/第二篇文章hexo/" data-id="cizpb9d50000530fl51qbgwbs" class="article-share-link">Share</a>
      
      
  <ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/hexopage.github.io/tags/hexo教程/">hexo教程</a></li></ul>

    </footer>
  </div>
  
    
<nav id="article-nav">
  
    <a href="/hexopage.github.io/2017/02/28/第三章：更多文章CSDN/" id="article-nav-newer" class="article-nav-link-wrap">
      <strong class="article-nav-caption">Newer</strong>
      <div class="article-nav-title">
        
          第三章：更多文章CSDN
        
      </div>
    </a>
  
  
    <a href="/hexopage.github.io/2017/02/27/第一篇文章/" id="article-nav-older" class="article-nav-link-wrap">
      <strong class="article-nav-caption">Older</strong>
      <div class="article-nav-title">第一篇文章</div>
    </a>
  
</nav>

  
</article>

</section>
        
          <aside id="sidebar">
  
    

  
    
  <div class="widget-wrap">
    <h3 class="widget-title">标签</h3>
    <div class="widget">
      <ul class="tag-list"><li class="tag-list-item"><a class="tag-list-link" href="/hexopage.github.io/tags/hexo教程/">hexo教程</a></li><li class="tag-list-item"><a class="tag-list-link" href="/hexopage.github.io/tags/标签/">标签</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">标签云</h3>
    <div class="widget tagcloud">
      <a href="/hexopage.github.io/tags/hexo教程/" style="font-size: 10px;">hexo教程</a> <a href="/hexopage.github.io/tags/标签/" style="font-size: 10px;">标签</a>
    </div>
  </div>

  
    
  <div class="widget-wrap">
    <h3 class="widget-title">归档</h3>
    <div class="widget">
      <ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/hexopage.github.io/archives/2017/02/">二月 2017</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">最新文章</h3>
    <div class="widget">
      <ul>
        
          <li>
            <a href="/hexopage.github.io/2017/02/28/第三章：更多文章CSDN/">第三章：更多文章CSDN</a>
          </li>
        
          <li>
            <a href="/hexopage.github.io/2017/02/27/第二篇文章hexo/">第二篇文章hexo</a>
          </li>
        
          <li>
            <a href="/hexopage.github.io/2017/02/27/第一篇文章/">第一篇文章</a>
          </li>
        
          <li>
            <a href="/hexopage.github.io/2017/02/27/hello-world/">Hello World</a>
          </li>
        
      </ul>
    </div>
  </div>

  
</aside>
        
      </div>
      <footer id="footer">
  
  <div class="outer">
    <div id="footer-info" class="inner">
      &copy; 2017 1141558609@qq.com<br>
      Powered by <a href="http://hexo.io/" target="_blank">Hexo</a>
    </div>
  </div>
</footer>
    </div>
    <nav id="mobile-nav">
  
    <a href="/hexopage.github.io/" class="mobile-nav-link">Home</a>
  
    <a href="/hexopage.github.io/archives" class="mobile-nav-link">Archives</a>
  
</nav>
    

<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>


  <link rel="stylesheet" href="/hexopage.github.io/fancybox/jquery.fancybox.css">
  <script src="/hexopage.github.io/fancybox/jquery.fancybox.pack.js"></script>


<script src="/hexopage.github.io/js/script.js"></script>

  </div>
</body>
</html>